/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package demo903;

import java.util.Arrays;

/**
 *
 * @author Administrator
 */
public class StringArrayDemo {

    public static void main(String args[]) {

        String names[]=new String[3];
        
        names[0]="zhang";
        names[1]="wang";
        names[2]="li";
        String names1[]={"zhang","wang","li"};
        
        for (int i = 0; i < 3; i++) {
            System.out.print(names[i]+" ");
        }
        
        for (String s: names) {
            System.out.print(s+" ");
        }
        int x[]={1,2,6};
        for (int  x1: x) {
            System.out.print(x1+" ");
        }
        

    }
}
